avoid copy
single thread when threads == 1
script to restart server
better test code