modify brolog write interface