Modified loadresource