a class make it easy to configure preference files.