few changes in route_api.js