temporary code for starting up client or server.