this is one way of doing it that leaks extra meny instances