new way of checking config