added auto update feature