Fixing menu1 bug

+ adding some test code for legend support