add config check
Merge pull request #1 from tsucchi/master

add config check