added extname for diff
move original extention to plugin