improve stay and patrol check_condition