Merge pull request #1 from beckermr/master

fixed some bugs in config arg passing