bug fixes in configuration script