* cleaned up resource loading