export system messenger to lua and redefine print function