converts spaces to tabs, refines logging output