class version of toml parser