fixed logging in static methods