update of application and cleanup