minify on update
fix JSON serialization