updating some logging, formalizing it a bit