using a custom object for routes