defined loading of resources functionality