building and running server