bug causing the wrong outfmt to be passed has been fixed