fixed callback data output for larger files