fix missing file://
fail if fragment has no ensure