add a server and a simple api