example of custom plugin to do conversion based on file extension