retire api v1 and v2, and move api v3 to app