added timeout to curl request