added check_maintenance