accept file and http uri in -f