improving reporter writer and handling