launch script for headless mode