added first version of update script