updated mod with static variables for modid