custom metrics b bbackend prototype