crude attempt at implementing a config system. It tracebacks at the moment, still needs work.