disable deprecated api