use JSON on destroy too
simple logging, fix some stuff