i think you need to update getOptions to expose all those things to the menu builder.