utility functions for use with Reagent