minor refactoring
deactivate maintenance mode