switched to normal outputstream and ensure .close() and .flush()