saving this fragment from autocat.rb
initial commit, new tool-script