updates to the ai_module and added tag_enum