Capfile and headlessness