refactoring variables out into the new .cfg files