first attempt at merging my code into this plugin