pretty dynamic loading of script