remove deprected warnings until we can move to non deprecated api