got a parameterized menu to work (somehow)