broken integration test somehow, but unit tests for rewrite_v1 passing. refernence commit
hmm. not sure why I need an X_METHOD, but removing causes integration tests to fail