cat script generation