correct writing of stack to sac files again.