use ByteArrayOutputStream
delete bin/.gitignore
add .gitignore