making chunk response work