change status into code
change code to status
add log file