modified script creation and parameter passing,
added workflow definitions