auto detect configurations