made it a plugin