update loader script to reflect new changes in Loader class