Update write to accept optional public config argument