support for custom metrics