improved the def-restricted-routes macro