license and fixes