updating to new API stuff