established launch and kill app functions