moved common logging to debug