issue #50 debug clone functionality