update json writer. remove some stray files