- use ByteArrayInputStream
- cleanup