finished threadpool
todo: processfactory to include all commands