moved the waiting to the right spot for nexmo