added autoupdate feature