more base api for metrics