simple clone support

Fixes #10 

- [x] implementation
- [x] a simple test harness