use -e rather than -f