add initIndex config

添加了initIndex，并且重构了preload
well done