writer.pre API