Put config object in a more logical place

So, this should have been done this way in the first place.

Since the previous change was made I **have** encountered it malfunctioning (though only once) that's not good.

This will make sure the config object is available before it is ever referenced, verified.