WIP: cleanup reload_schema_local
WIP: cleanup index reload and refactor schema get
WIP: more refactor
WIP: fix specs