fixing example code, need to import config