modify loading script