modified loader.pl