[ADD] migrate from api 7 to api 8

The migration was total, including the sintax