add pipethread, test looper and handler