allow a custom function for the launch.browser parameter