use timeout variable for wget as well, thanks gmag