barely testing
minor refactor, config options through json