add more structure to lua api. how about a typedef for ints that are apikeys?