refactored to use routers and split up helper functions to helper.transport, added moment dependency