working on BufferedInputStreamWrapper