a main menu function is cloned with default parameters