decoding in a separate thread ok