* rewritten: check for file protocol