add memory lua lib