added some loggin