use ! instead of ~ to avoid shell expansion