accept prefix option in #write