much better handling of pidstat