http thread should terminate on ctrl+c
simpler file permissions for windows
small changes