added auto config