add library with Lua helper functions