improved logging and fileserver