rename check -> check_peer