updated to fix with node chunk handling