use less Lua features, extend mini library