added codec check