updated plugin to fix file read