add license for 'external' lib
refactor