updated logger setup/flushing, moved md to tmog