first cut of a small plugin. seems to work where I have tested it