fix to canonicalize menu and also a stligh mod to promise