add debugging for indexing studies