a cleaner routing implementation