copy options for attaching to pipe