converted to an addon, first attempt to fix convar