added --wait param to launch file