move compressing script to utils