add server code for issue #68