add license and logging