adding some metric data functionality