clean reverse_path_check_proc() a bit