added function getHeader and restp