check if this is thread safe xc generation