removed curl in favor of file_get_contents