change the -r to -f and change semantics