added first take on WriteXobs