updating loader script