refactored backingstream