added code for first launch. Finally.