imports index initialization
fixed error when creating stream for indexing