feat(index): change to read config file in toml