return header along with playload after decoding