rewrote launch_apps