add log and comments