updated configure routine.