increasing wait time for rest request, and adding some logging