@bdn's magic for routes