add license info
handle missing dirs