copy interface to client and server