add support for the --all option