added functionality to clone a container