run a separate thread for every command