add feature for load config to object