improved configure step