steps to headless operation, warning: does not work