also output in headless mode,  added headless command