allow for different metrics registries
formatting
follow google code style