add check in shared/beer, add beer_helper functions