added loging of debug information