pickwritestream working