apparently ~ doesn't work, have to use $HOME