generic way to call base class constructor