add extra debug flags, switch to Lua5.2
cross-plugin function calls