change ~ to $HOME to avoid shell transfer