pull bulk of request into new cpp file