added stripping of wrapping body/stream tags