update to use -f flag instead of -e