added wait for server to fix server starting up after client issues