replaced ~ with $HOME for consistancy