moved _config from prototype to constructor