use config option instead of file
Merge pull request #1 from kyanro/master

use config option instead of file