we need to instantiate logger here also, similar to line 67