api and error reporting updates for codec