routes and cost copy functions added