err code fixes