generate scripts for complex environment building