added memory dumping after execution