adding context to LoadTag
fixing segment loading and including length in metainf