save prescribe to file