Split $build, $pres, $iq and $msg into separate files