builds a server