improved debug logs