all methods working in client and server