Lua doors api