update handling of requests queue to one function