Config writer and reader