clean up of the 'configure' method. Now provides more failure information