added new routes required by julien, also modified models to match the JS library