cleanup base class