refactored store to support new transcoding support