added a proper error message for messing up the -f flag