call configure only as needed