change the way model is imported
Added support for reconnect, store the mtime of last successful parse if connection is lost.