bug fix: class was ignoring production url and always using sandbox