initialize doc and license