use config value for compairison
Merge pull request #318 from teharrison/master

use config value for compairison