putting together some heap checks