prepareing for server run