moved WriterpreparationException to public package