edited pegasus_wait output