read and write dump works