https-server tidying