commented out logger.debug to improve performance -10ms on benchmark test