apply api changes to scripts