monkey patch to have have nice serailization of objectIds