another nitpick but this function should be moved below all the module.exports stuff since that's the plugin itself, and add a quick comment for this one