update script compliant with all version