add headless and xvfb support