removed currentScript, added sequential loading