copydir implemented