tidy the diretories and write a stupid server.