more robust rsrc invariant