add codes and config file