update ad update script thanks to hawkerpaul