changing method to write data in the plugins