added support with read from index