fixed up move and copy semantics for cloud