put convenience functions in utils.h