appmenu: guard i/o functions