read and parse header + merge project