rename save method
dir instead of rdir
process each directory separately