changed all references from /home/pi to $HOME