compressing scripts