add headless mode
Revert "add headless mode"

This reverts commit 26e040bf9cfca5a671321fde854d8ed27450cf2d.