update max script demo