added a facet builder for use on the client side