add integer parsing to route