add logging to troublshoot the issue