support button mode, separate log files