[ADD] migrate the mod from API 7 to API 8