re-adding some console debugging