don't pass around logger object just the member function