add license
can quit / fix some memory leak