little changes to logging