psgrep fn added