devs pls fix The`dict` is too complex and has too many params I suggest replacing it with a `class` and using class methods pls and thx