initial threading commit.

download only, upload unfinished