updated  getVisitorClass() to latest api