more work on lua interface