fixes #46 - passed in logger