made the beastmaster script work with multivendors.