refactor the object replicator to an object instancer