Ok, I'll rewrite the config code tomorrow. I'll create a PR once it's in good shape.