automatically register codec to make shorthand methods easier to import