changed config to object