changed init method to include launchOptions