debug is now a preprocessor switch for clarity