added timeout and async decorator to get/post request handler