add functions

add copy/cut, get/set permission functions to server.