rewrote a tool I used more frequently that I should have