refactor out call to get-plugin-path calls as not needed