added support for clone