add auto udpate flash feature