load config in classes