metrics should be optional