moved config to models