implement isModified functionality on models
make the connection opening a little more intelligent