modify http-server and programming principle