run shell in own thread