init some configs and a main class ExtendsAction