issue #9 and fixed the routes object