static controller and app cleanup