add premain class modify