added custom routes and tests