added timeout for the post request