better logging and typos