taking a step to making script execution more generic