add deprecated api