add getpriv, removed lua2