add the required class (extends) and fix config