control threading more carefully, and enforce single-threading during decoding. moved unused source files to old/