added support for copy and delete