add main and config