add binary mode save and load