Add some extra information on config.xml parsing errors
small performance improvements