add mab.lua, the first usable version