add ability to change writer destination