change ~ with $HOME