partial implementation for resource loading