add repo and config in models