adding functions vs a straight file, which should make this easier to read longer term