publish error, params clone error
added minimist req; improved flow script