logging and typo fix