adding diagnostic code for the root.messages bug
Fixing error handler load issue.  loading error handler separately.