use file path instead of static file name, add helper method for returning plugin errors