disable header check when not run in a browser