everything needed for -F except for the logic itself

Signed-off-by: Mattias Andrée <maandree@operamail.com>