modified server code, added operations