fix bugs found in testing, add simpleClone()