finished coding, now need to fix unit tests
fixed subpipeline by making it a class, not a function, and passing in the object to the class
fixed unit tests (removed most of test_direct_proxy because it doesn't make sense