fix statistics
add logs and measurements