helper scripts for spectral solver pre and post processing