initial commit to a very handy script I'd like to keep around :)