formatted some log and console output