fix autoupdate

As described in #2 this is an attempt to fix autoupdate