support chunked encoding to help with transfering large files