added debugging output, added  --nohttpinterface