added a bunch of logs to make debugging a breeze