code from RFLLib on ProcessRunner - just to crib from