Fix transcoding in 4.0. this if needs to go.. need to refactor capabilities, config settings and server version to another object