we should have an ifdef for this type of debug logic, even if it's only file-level