adding push monitoring to find the job complete and fixing issue with output stream reading