should not require a filename; check extension only if we have one
update docs