fixes #144 codegen duplicate definition of Status
fix deprecations