Merge "add validation of blend functions"