base class setup