errors in payload init corrected