organize generally useful functions into useful.c