allocating requests and responses in stack