Some utils class for lua