remove log, fix compile errors