more work on the form plugin, work in progress