added option to pass scripts manually