add writer context