handling large buffers correctly

fixes #1
version bump