build config file