setting up attribute-based routing