makes write_all_brew almost work