fully working (messy) mod and plugin. also may not be the most efficient.