more robust methods for body/header identification, utils extented