small changes to command line (-p option), changes to generated scripts, moved scripts location