Some work on optimalize config file