added autoconfig option