switch to store config in model