make sure memories get generated properly