updated to no longer use exec() - required php curl extension