updated the way scripts are handled