fixed payload decoding so that it doesn't take fucking forever