useful script for generating signatures