added a ton of debug logs