updated to make the WBPerson optional to extend the use of the script