add another cpp func for lua to call