adding scripts to generate pair actions