a few logging fixes mainly for the GUI textbox logging control, but this also fixes the extra spaces when running standalone