adding write for path