Darn...forgot to remove pathtolib from the function calls in mainmenu