working on server and client -ER