add time management in maintenance mode