move processing functions into decoder_context