rewrite read config with configparser