add 'timeout' option for setting curl timeout value