minor lua api fixes