utilities for use with doit