class to read configure file