add indexFactory
fix