clone with linking
Merge branch 'smart_clone' into devel