update loading of scripts