mapbuilder writes fine except minor indentations error