added some more loggin