adapt to google library => v1