consolidate logging to one line