implement flexible write configuration