more loggin improvements