imported measured modules and customized it for internal metrics, it will be modified more later and incorporated deeply in the code