odify the way scripts are handled