mod/hotpot use a base class to optimize classes/event