removed some of the deprecated API usage warnings