replacing /home/nicl write directory with /tmp