it's better to use json-parse here ... eg. when reloading plugins
cleanup
plugin loading