cleanup for gem5