added wait for internal server to become ready