add hack to flatten returned initial messages