adding sssd support and min_id and max_id