fixed the log and setstatus