Add read and write file methods for plugins