factor out config and only require if needed
Merge pull request #5 from ralphtheninja/master

factor out config and only require if needed