refactored the way that logger is passed; inital stats for thumbniler