ifdef out some debug checks for the release build