simpler command protocol + chunked result logic