consolide decoding code to DecodeFrom
some request docs