json plot do_free implemented