apply format extension to result path