add default dir for log and output