moved client instatiation outside of request; no need to do this every time a request comes in