first stab at a script for associating tags