changed ~ in favour of $HOME