adding some loggin