change mode to headless.