use an if block on the whole configure command