codec fix(QAQ
switch to new-style classes