restructure orgmode generator