recognize ref classes in source index