add app functions
routine cleanup