extracted log to separte util