minor tweaks to pattern handling
fixed sprintf bug in menu
fixed navbox