basic codec working