fixed up webserver start/stop code