working on tests + simpler logMsg setup