small work on server and client