added custom routes and support for non AR models