Credit User for Gain plugin mods + Andrew for Debian 12 bld fix