added clone internally, fixed objectid bug