copied luabinding from quick, reviewing