change format of api.run
change order of functions
del plugin so