renaming luatype to luatypekey