runs on Condor.
bug fix mask_surface