add 'pv' command check, some error checking too