added resource loading callbacks