add common remote end function
change server to use common remote end
remove end methods from clients