adds optional validation to transcoder