be smarter about creating file urls