handle case where no file or url specified