fix server interface
Merge pull request #6 from zhengjia/fix-server-interface

Fix server interface