improve psgrep command