helper scripts for damask pre and post processing