removed decctx from thread_decode_* functions