support string and mongoids for _id