simplify dump and load to use less space