another attempt at fixing foundation's brokenness and removing the menu clearing monster