expose ad hoc rules to browser and node