adding msg and typedefs (types ext)