fixed: routing (comparing flags)