use -p in addition to --primary for write stream options