fixed build
added initial leaky clone implementation