start server
make the program can work
remove unused code