bugfix for route, implement chunk data processing