added license and optional timeout to client init