better error message for parse failure on number
create tree when writing file