loading of scripts fixed