rework capabilities metatable