Merge pull request #12 from michaelglass/master

cache config requests and validate type if type given