added support for managing the index