added utils for logging