detecting changes, needs to be hooked up to fix issue #41