add in status code recording into the printouts