some touches to ai_nim