[WIP] Codegen errors

- [x] Remove duplication of interfaces
- [x] Fix fatal errors
Not sure why it was aliased like this before