numerous bug fixes and writer no longer sharing a stream; stream just created whenever some reading or writing needs to take place