merge remaining parts of codec