finally got writebody to something rather simple