lua api additions