cleanup and update codecs