added a license and fixed the client