only warn when $debug is set