metadata getter, updated index and todo