Adapt the code in order to be compatible with the new file structure of the extensions.