working on server and handler