fix moduleloading to use relative locations