support class define in singleton class