handle cases where no file is supplied in the url