added lua helpers