fix --rev not working properly
rework copyto and delete