beginning of lua embedding