compile script needs to copy sop in place