a lot of small things that add up to a much more performant script