changed from $HOME to /tmp