// added headless as command line option