start writing http server and query processor