output log and few changes