allow formats to override the extension of the output file