modified script loading