moved logging logic to it's own class
1.1.0