fixes

Fix flushing.
Change debug level on messages.
No need to use String.format in many places.