get cloning working, need to write a test for it