fix support for docs w/o file name