added log messages, forcing prettyname to string
fixed bad typo