added additional debug logs