restored autoupdate script