implement some code about server and bootstrap