improve write results to .menulist file