added autoupdate functionality