added lastActiveTime field to commEntity struct