base class setup for service