fixed splitting bug and made it retain anno file headers