initial auto-update detection code (unfinished)