add error code 1 for easier override.
fix undotree override bleeding over to the main.
pass context into the builder.