simplify manage_trip processing logic