fixed up the resource loader, adds things more appropriately now