forget add USE_AVALON2 at api.c