Now it handles local model for the connection