added auto-config script