spammed printf everywhere and isolated a crash bug