clamp progress to 0..end, add possibility to receive whole lines only in processOutpu...