updated server code
fixed bugs, able to solve large size data