added codec stuffs