use pgrep instead of pidof