fix some empty values errors; add default user agent; add curl timeout