initial stuff for validation of the receipt