added file:// uri support