improve efficency of parsing routes file and starting the node server