add some function for index manager