add wrapper for Writer