update max script