make sure that debug is only enabled during