added logging utils