add __gc to metamethods