updated server code
updated server code