adds logger and exceptions