mescc: m4 support: WIP