metric extraction scripts