updated autoupdate functionality