more robust cloning