works for one or 2 reqests from client to server