improve configure input