added check on api and custom extension in enable