thread setting works, port to 8008