add config and log class.