initial working launch code