move maintenance out of app