still working on pg-copy-stream