allow oop to use config instead of global config