change config library from class to module