add formated task for routes.js