adjusting node patterns and created ErrorHandler