added __getHeader and __getContent methods