modify script for product copy rules from cm11