change script loading order