fix issue with error handler and module load order in configure.