added NBThelper class from pahimar's Lets Mod Reboot series