adds the generic dump function