main server and some basic responses