added 'getPayloadType' method