added splitPayloadIntoBytes member function