changed main and config.xml