update loader script