adapted script for new constraint prototypes
script uses new contraint functionnalities